package com.bricker.laboratorymanagement.business.controller;


import com.bricker.laboratorymanagement.business.entity.SysClass;
import com.bricker.laboratorymanagement.business.service.SysClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/sysClass")
public class SysClassController {
    @Autowired
    private SysClassService sysClassService;
    /**
     * 根据系别以及年级查询班级
     */
    @GetMapping
    public List<SysClass> getClassesByTid(Long tid,Integer grade){
        return  sysClassService.getClassesByTid(tid,grade);
    }
}
